QQ_number=["10000","10001","12014","12306"]
QQ_password=["123456","123456","123456","123456"]
select=input("Please select login or register:"+"\n"+"A.login\nB.register")
if select=="A":
	user_number=input("Please enter your QQ number")
	i=0
	j=0
	while i<len(QQ_number):
		if str(user_number)==QQ_number[i]:
			j=2
			user_password=input("Please enter your QQ password")
			if str(user_password)==QQ_password[i]:
				print("Login successful!")
			else:
				print("Your password is wrong")
		i=i+1
	if j==0:
		print("No QQ number in reposory")
if select=="B":
	i=0
	j=0
	user_number=input("Please enter your QQ number")
	while i<len(QQ_number):
		if str(user_number)==QQ_number[i]:
			print("Sorry,this QQ number is used")
			j=1
		i=i+1
	if j==0:
		user_password=input("Please enter your password")
		QQ_number.append(user_number)
		QQ_password.append(user_password)
